package com.serge.smartdacha.model;

import java.util.Map;

public class FMController extends Controller {

    int freeMemory;

    public FMController() {
        super("FM");
    }

    @Override
    protected void init(Map<String, String> map) {
        setFreeMemory(getInt(map.get("F"), -1));
    }

    public void setFreeMemory(int freeMemory) {
        this.freeMemory = freeMemory;
    }

    public int getFreeMemory() {
        return freeMemory;
    }
}
